package com.wydexcel.generate.process;

import com.wydexcel.generate.properties.ExcelAbstractSheetProperties;
import com.wydexcel.generate.properties.ExcelFieldProperties;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.CellStyle;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;

import java.lang.reflect.InvocationTargetException;

public interface WydExcelCellProcess {

    ExcelAbstractSheetProperties importProcess(Row row, Cell cell, Sheet sheetAt, ExcelAbstractSheetProperties excelAbstract, boolean isNull) throws InvocationTargetException, IllegalAccessException, NoSuchMethodException;

    boolean exportProcess(Row row, Cell cell, Sheet sheetAt, ExcelAbstractSheetProperties excelAbstract, ExcelFieldProperties fieldDTO, CellStyle cellStyle);
}